home *** CD-ROM | disk | FTP | other *** search
- Path: news.kreonet.re.kr!usenet
- From: jwhahn@cair.kaist.ac.kr (Jung Hahn)
- Newsgroups: comp.lang.c++
- Subject: Re: Simulation Problem, Help!!!
- Date: Wed, 07 Feb 1996 12:00:10 GMT
- Organization: Applied Database Labs, K.A.I.S.T
- Message-ID: <311893e4.14225114@news.kreonet.re.kr>
- References: <4f9iiq$5nl@newsbf02.news.aol.com>
- NNTP-Posting-Host: swine.kaist.ac.kr
- X-Newsreader: Forte Agent .99d/32.168
-
- On 7 Feb 1996 01:58:34 -0500, mlin01@aol.com (MLin01) wrote:
-
- >I need to write a program to do some bond trading simulations. This
- >program works like this:
- >
- >1. It asks the user about the interest rate constrains.
- >2. Based on the constrains and the actual interest rate, the program will
- >come up with the gain
- >or lost.
- >The chanllenges are:
- >1. I need to validate user inputs. This implies the inputs will have the
- >correct syntax and semantic for the specific language.
- >2. All constrains have to be exclusive and the union of all the constrains
- >is a universe.
- >3. Translate all the constrains as part of the calculation function at run
- >time.
- >
- >If you have similiar experience, please let me know at mlin01@aol.com.
- >Michael
-
- Why Don't you go to the library and lookup
-
- "lex & yacc"
- by John. Levine, Tony Mason & Doug Brown.
- (O'Reilly & Associates, Inc).
-
-
- Parsers generated in Yacc are ganranteed to be much faster than what
- you'd ever hand-program.
-
- When using Lex & Yacc the Bugs would be Syntactic/Grammatic whereas in
- the case of your hand written code ... who knows ...
-
- It's free ...
-
- Not the book ....
- ___________
-
- Name: Jung w. Hahn
- Elm: jwhahn@cair.kaist.ac.kr
- Phone: 042-869-2959
-